home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 10 - 1994 / 10.04 Apr 94 / Accurate Timing / TestFuncs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  307 b   |  35 lines  |  [TEXT/KAHL]

  1. /* TestFuncs -----------------------------------------------------
  2.  *
  3.  * Functions to be timed.
  4.  *
  5.  */
  6.  
  7.  
  8. #include    "TestFuncs.h"
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. void Foo( long *x, long *y )
  16. {
  17.     long i = 5;
  18.     
  19.     do {
  20.         *x *= *y;
  21.     } while( --i );
  22. }
  23.  
  24.  
  25. void FooBar( long *x, long *y )
  26. {
  27.     long i = 5;
  28.     
  29.     do {
  30.         *x *= *y;
  31.     } while( --i );
  32. }
  33.  
  34.  
  35.